<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<button onclick="snap()">click me</button>

<script type="text/javascript">
        var nativeObj = new ActiveXObject('Snapsie.CoSnapsie');
		var onSuccess = function(msg){
		    console.log(msg);
		};
		var onStartUpload = function(){
		    console.log('start upload');
		};
		var onError = function(){
		    console.log('error');
		};
        var snap = function(){
            nativeObj.saveSnapshot("127.0.0.1","/1.2/file.php",80, onStartUpload,onSuccess,onError);
		}
</script>
</body>
</html>
